package org.dothwinds.springbootstudy.service;

import org.dothwinds.springbootstudy.dao.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public int add(String name, String addr, String company) {
        return userMapper.add(name, addr, company);
    }

    public int delete(long id) {
        return userMapper.delete(id);
    }

}
